home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970326-19970626 / 000239_news@newsmaster….columbia.edu _Mon May 26 23:39:22 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id XAA01602
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 26 May 1997 23:39:21 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id XAA19085
  7.     for kermit.misc@watsun; Mon, 26 May 1997 23:39:20 -0400 (EDT)
  8. From: arthur@gateway.dircsa.org.au (Arthur Marsh)
  9. Newsgroups: comp.protocols.kermit.misc
  10. Subject: simple test for controlling terminal?
  11. Date: 27 May 1997 06:26:01 +0930
  12. Organization: DIRC - Disability Information & Resource Centre - Sth Australia
  13. Lines: 13
  14. Message-ID: <5mctd1$h7f@gateway.dircsa.org.au>
  15. NNTP-Posting-Host: apache.dircsa.org.au
  16. X-Newsreader: TIN [version 1.1 PL8]
  17. Path: news.columbia.edu!panix!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!news-xfer.netaxs.com!feed1.news.erols.com!news.ecn.uoknor.edu!munnari.OZ.AU!news.mel.connect.com.au!news.ade.connect.com.au!duster.adelaide.on.net!news.sa.iinet.net.au!morse.satech.net.au!news.camtech.net.au!news.dircsa.org.au!news.dircsa.org.au!not-for-mail
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7084
  19.  
  20. Hi, I do have the fine C-Kermit manual, but wondered what the simplest
  21. way to get a Kermit script to quit if the script was not run from a serial
  22. tty. 
  23.  
  24. In other words, what would be the proper C-Kermit script to compare a
  25. substring to achieve the same result as:
  26.  
  27.     if not (first 8 characters of \$(LOGTTY) = "/dev/tty") then quit
  28.  
  29. -- 
  30. Arthur Marsh, telephone +61-8-8370-2365, fax +61-8-8223-5082 
  31.               arthur@dircsa.org.au
  32. .endofsig